import request from '@/utils/request'

const PREFIX = '/speed/cooperos'

export function readFile(params) {
  return request({
    url: `${PREFIX}/readFile`,
    method: 'GET',
    params
  });
}

export function publish(data) {
  return request({
    url: `${PREFIX}/publish`,
    method: 'POST',
    data: data
  });
}


/**
 * 更新部门
 */
export function updateDept(data) {
  return request({
    url: `${PREFIX}/update`,
    method: 'PUT',
    data: data
  });
}

/**
 * 删除部门数据
 */
export function deleteDept(id) {
  return request({
    url: `${PREFIX}/delete/${id}`,
    method: 'DELETE'
  });
}
